package com.jeeplus.modules.work.queue.mapper;

import com.jeeplus.modules.work.queue.entity.ElectronicMaterialEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface electronicMaterialMapper {
    /**
     * 获取证照
     * @return
     */
    List<ElectronicMaterialEntity>  getElectronicMaterialCertification(String loginId);

    /**
     * 获取普通电子材料
     * @return
     **/

    List<ElectronicMaterialEntity>  getElectronicMaterialOrdinary(String loginId);
    /**
     * 删除材料
     * @return
     */
    Integer  delElectronicMaterial(String id);

    /**
     * 修改材料
     * @return
     */
    Integer  setElectronicMaterial(ElectronicMaterialEntity entity);

    /**
     * 添加材料
     * @return
     */
    Integer  upElectronicMaterial(ElectronicMaterialEntity entity);

    /**
     * 按材料ID获取材料路径
     * @return
     */
    String  getURLById(String id);

    int delUserIdcardMaterial(String userId);

    int findMaterialNameCheck(String materialName);
    int findMaterialNameCount(String materialName,String loginName);
    int updateMaterialStatus(String id,int status);
    int intoYmbcsRemark(String materialsId,String remark,String loginName,String doTime);
    List<String> findYmbcsRemark(String loginName);

}